﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/Master/Main.Master" AutoEventWireup="true"
    CodeBehind="ProductList.aspx.cs" Inherits="ECommerce.Web.Site.ProductList" %>
    <%@ Register src="controls/SaleRank.ascx" tagname="SaleRank" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="styles/Twopage.css" rel="stylesheet" type="text/css" />
    <link href="styles/Pager.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="mainleft">
            <uc2:SaleRank ID="SaleRank1" runat="server" />
            <div class="advertisement">
                <a id="lnkSub1" runat="server" target="_blank">
                    <img id="imgSub1" border="0" width="224" height="162" runat="server" src="" alt="" /></a>
            </div>
            <div class="advertisement">
                <a id="lnkSub2" runat="server" target="_blank">
                    <img id="imgSub2" border="0" width="224" height="162" runat="server" src="" alt="" /></a>
            </div>
        </div>
        <div class="mainright">
            <div class="sortlist">
                <ul>
                    <li>按 品 牌：
                        <asp:Repeater ID="rptType1" runat="server" 
                            onitemdatabound="rptType1_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://" code='<%#Eval("Code") %>'><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>
                   <!-- <li>按 用 途：
                    <asp:Repeater ID="rptType2" runat="server" onitemdatabound="rptType2_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://"><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>-->
                    <li>按 材 料：
                    <asp:Repeater ID="rptType3" runat="server" onitemdatabound="rptType3_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://"><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>
                    <!--<li>按 对 象：
                    <asp:Repeater ID="rptType4" runat="server" onitemdatabound="rptType4_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://"><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>
                    <li>按 造 型：
                    <asp:Repeater ID="rptType5" runat="server" onitemdatabound="rptType5_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://"><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>-->
                    <li>按 价 格：
                        <asp:Repeater ID="rptType6" runat="server" onitemdatabound="rptType6_ItemDataBound">
                            <ItemTemplate>
                                <a id="lnkType" runat="server" href="javascript://"><%#Eval("Name") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </li>
                </ul>
            </div>
            <div class="shopcar">
                <p>
                    排列方式<asp:HyperLink ID="lnkDefault" CssClass="one" runat="server">默认</asp:HyperLink><asp:HyperLink ID="lnkSalesVolume" CssClass="two" runat="server">销量</asp:HyperLink>
                    <asp:HyperLink ID="lnkPrice" CssClass="three" runat="server">价格</asp:HyperLink>
                </p>
                <div class="productlistc">
                    <asp:Repeater ID="rptProduct" runat="server">
                        <ItemTemplate>
                        <div class="productlist productone">
                        <div>
                            <a target="_blank" href='ProductDetail.aspx?ProductID=<%#Eval("ID") %>' title='<%#Eval("Remark") %>'><img src='<%#Eval("SmallImageAbsPath") %>' alt='' style="width:254px; height:254px" border="0" /></a></div>
                        <h3><%#Eval("Remark") %>
                            </h3>
                           
                         <h2>
                            <a href='ProductDetail.aspx?ProductID=<%#Eval("ID") %>' title='<%#Eval("Remark") %>'>[<%#Eval("Type1Name") %>]<%#Eval("Name") %></a></h2>
                                       
                        <h1>
                            市场价：<em><%#Eval("OldPrice","{0:c2}") %></em></h1>
                        <h4>
                            特惠价：<b> <%#Eval("CurrentPrice","{0:c2}") %></b></h4>
                        <h1 style=" _margin-top:10px;">
                            评价：<%#GetScore(Eval("AvgScore"))%></h1>
                        
                    </div>
                        </ItemTemplate>
                    </asp:Repeater>                   
                    <div class="clear">
                    </div>
                </div>
                
               <asp:Literal ID="litPager" runat="server"></asp:Literal>
                <div class="page"></div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
